Updating html when error ajax encountered.