adjust layout.