add content and format layout