handle pressing enter on location inpt