moved callbacks from popup into Ide class