Updated geolocation in mainactivity and dialog box works.