custom event handler for calendar event click