adding variable layouts and templates