adding to the click event