Fixed the ajax calls with POST