adjust UI layout.