remove dialog refs