Fixed iPad main menu. Code cleanup.