Updated main window to reposition labels after resize