click outside to close context menus