add enter and exit events
added special enter and exit state events
tested enter/exit