Undid changing mainMenu to transient, cleaning it up programmatically
instead.