add container class setting and change to queryselectorall from getelementsbytag