use base view class instead of django methods