add DocumentListener to show hint