Changed for class based views