Swtich out functional views with class based views