adding encode ajax