Using shared preferences for the location