changed innerHTML to appendChild