add settings and update the layout.