replace innerHTML append method with insertAdjacentHTML