Events working for button clicks