created DialogBuilder class for creating dialogs