create layout and partial content