make changing size usable in ui.