started innerHTML refactoring