Dynamically appending the user input to