Made the widgets resize accordingly when the window is resized