create layout and add content