Implemented error button
More ajax error handling