Using shared preferences to store selected residence