error overlay refactor. rebuilt using DOM methods