Window resize behaviour

When window is resized, we do not want to set the values again, only redraw the UI elements.