Apply class-based view