create root as a class-based view