added an option to disable user input