implemented click events for periodic table