open dialog go back using esc