using classed based view