added ajax error notification functionality