Added window resizing events

So that overlay is resized accordingly