html and stylesheet rewrite