Make TwoPartSelection dialog hide on events