dialog for directory and file