updated main activity to prevent calling location changed everytime
updated main activity to prevent calling location changed everytime