move data fetching from view to controller