change adding-new-elements methods to using js only but keep the css unchanged