updates height of input field