update main layout