Make the widget move and resize along with the main window