fix logical error on showing note dialog

Change-Id: I9f45348a87a9e753626276a8df4b5d5c60b29a0b
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