Removed excess ajax calls