controller magic in a mixin