before refactor html