added locationmanager for selecting state