made the taken and skipped as ajax calls