own-products');

            if (!resourcesList.contains(event.target)) {
              dropdownResources.checked = false;
            }
            if (!productsList.contains(event.target)) {
              dropdownProducts.checked = false;
            }
          });
          // on mouse over
          document.getElementById('resources-list').addEventListener('mouseover', function() {
            document.getElementById('dropdown-resources').checked = true;
          });
          document.getElementById