Improvements on text input