hide dialog on contextmenu