Remove added items from context menu before changing views