disabled smartchar and add autoclose