making the contextmenu scope dependant