corrected the UI resizing