modal dialog for open and save