Adding flexible layouts