fixing UI placement and resizing