Refactored simple modals to use $dialog