Allow to register a class based view