Branch details view now uses factory for api call