finalize user input functionality