1st version of click event