Back to html. Fix some bugs.