moving the click function to different place

experimenting to see if it works