Make window resizable and update UI