adds error edits to html pages