Converting another view to CBV