Adjust UI layout and add setting UI.