modalService is part of modalController.
Commented-out code removed