contextmenu sync with viewer