add an option to hide the text input