added click listener to button