Extract controls to separate template