Resizing works

Finally able to resize the window correctly, buttons stay in relative
positions along with labels.