Added a function in app.js that creates a new ngTableParams, also changed the controllers to use the function