more progress making an adaptive layout.