Changed profile views to cbv.