make menu item only show up if initialization succeeds.