updated ajax post at api.php