set layout and title