reorganize layout for adaptive layout