added code in home view to get location in coords