Class based view rewrite