Add resizable UI

Now able to resize the UI and save window size and position.