Refactor views function based views into clases bases views