correctly remove menu entry and tool bar icon