ExitMenuListeners implemented, code refactored