fixed ajax response

Also the page create issue