Fixed errors with alternate $menu and $submenu variables when adding widgets.