Set up the main layout