add choose pre/outer entity dialog