update newest code, implement create new html document, modify layout