added user input functionality