MageFrame changed logic the handle the activeFrame.