added click event handler