resizing and some minor ui adjustments