moved locations fetching out of fragment