update main UI layout