if i move all the filter functions from the other controller to mainCtrl, then i get the same thing when i switch between views