refactorized html code