changed the ajax input to auto select the text