Use "ng-show" instead of "ng-if" to avoid the scope problems of create new inner scope