added save functionality for textinput bar