modify tornado module to adjust to html