fixed resizing UI issues