Update the main layout