Cleanup main layout