added some action handlers and event processing