the remaing text is hidden when clear button is clicked