refactored modal dialogs for databaseView