Close contextmenu when save button clicked