Working on the event handler for text box input