adds title and layout