built nearly working table using ng-table and replaced previous example with it