modify class atts and add content to multi pages