Convert views to CBV