changing CBV profile view to function

demasiada magia en CBV :tongue: