work on open dialog