added ajax error displaying