Updated the referer modal controllersto use `$modal` instead of `$modalInstance`