Upgrade main layout