started code for constant location fetching and running app in background