clean up master pages some, added dirty pages