commit changes before applying new HTML/CSS