Call for search simplified after finding how angular handles views after data is being refreshed