add the event handle for pressing back button, to provide an event dialog