modifies each html page