main layout update