modal controller mixin
working modal controller mixin