adding xbit main menu handling