Moves windows resize event listener to main doc and fixes resizing

Still have to fix moving movingBox