Added an adaptive layout