working prototype of the button click