fixed the ajax user problem and softcoded settings