moved ng-controller statement for grid and chat