replace click event to on for more better event binding
added input method preview system