Resize fix

Fix resize of the window so elements now move if the size of the window
changes