update choice and prompt code