show character length in popup window