this seems to be too generic here. Can't you just scope to your ime dialog ?