Fixed issue #36 (State chart of selected agent gets deleted if user then clicks to view a different model)