use better dialog handling on IME settings

sorry did not saw that crap from 4.3 implementation. use a better
dialog handling as well prepare it for future other dialogs
we may need here

Change-Id: Ibdbceaa9041f3f9d2d6ee55fe75556c398120bf8

Thanks to  kufikugel