code rewritten with class based views