Checking click event