add onenter & onevent