added function to create new dom by passing classlist and innnerhtml