adjust view layout.