added onResize method and made a systemwindow resizable