update main-layout