added event handler for alert on button click