Memory Management of MainView and MarketManager