update html doctype, refactor some css files