Removed the warning the mainmenu class