Added button event handler