Corrected if-else issue in ng-show ng-hide stuff