finished main layout