add testing html
refactor code