implementing selector
added location bar function