Used ng-if istead of ng-show for better performance