added click event checking