replaced ng-show with ng-if

to prevent race condition
Merge pull request #51 from Rise-Vision/bug/stats-table-1-of-0-pages

replaced ng-show with ng-if