create root as a class-based view

Hi,

there's one view transformed to class-based view, according to attached `TODO`.

I'm sorry about these stripeed spaces, my IDE strip them autmatically. I hope it is not big problem.