Update main layout