added Render and ExitFrame event