Trying to add a remove method to the text input