Implemented and tested ModalCtrl