changed response for each problem
dealt poorly with the ajax issue