Updated controller and added ng-repeat, ng-show & ng-hide directives