cleaning up menu items and dependencies