fixed ajax bug, minor extra space. ajax for search workong and saving in database