changed the data type of the ajax call to text