rename controller and use uiIf instead of ng-hide/ng-show