table working after fixing ng-controller scope