added click event and updated textview