make MiniMui ref-counted