Returned some class based views to functions