CHanged ajax button status when clicked.
Simplified ajax error handling.