small tweak in location manager to set the listener