Refactoring ModalView Templates