create modal mixin