added location input field and all its functionality