Finish main layout