Using predicate method and moving to app controller