Updates layout.