add dialog mixin