refactor html base