update the input part of display