some ui improvements when resizing