Before making changes to add text input