Split the layout

The main layout has been made easier to read; the title bar is now saved
in a separate file.