Added method for logic to be able to set the text in the input box