addded code to click