reducing dom manipulations