optimize eventmanager
move pausemenu to hud.