title: add html page on another html like ads
body: <p>if I select more than 5 I want that another Html page will pop up like an ads to the user will unselect one of the 5 selected</p>
  <pre><code>let counter = 0;
      $('.switched').change(function () {
  
          if ($(this).parent().parent().hasClass('clicked')) {
              $(this).parent().parent().removeClass('clicked');
              $(this).parent().parent().addClass('notClicked');
              counter--;
              console.log(counter);
          }
          else if (counter == 5) {
              $(&quot;#htmlTemplate&quot;).empty();
              $(&quot;#htmlTemplate&quot;).load(&quot;popUp.html&quot;);
              $(&quot;.selectedCoins&quot;).append(&quot;.clicked&quot;);
          }
          else if ($(this).parent().parent().hasClass('notClicked')) {
                  $(this).parent().parent().removeClass('notClicked');
                  $(this).parent().parent().addClass('clicked');
                  counter++;
                  console.log(counter);
          }
      });
  </code></pre>