Fixed a bug where pressing the toggle menu button of main menu on a
mobile device was cause the sub menu to toggle