move base controller into mixin
create mixins as base for controller