added some events for button clicks