make textbox shorter so buttons are always onscreen