add mixin and class based view