updates to menu item to support toggle behavior