fixed alertDialog, full tested char counter