Move filter from application helper to application controller