although dynamically changing window size will cause awkward modal sizes, setting the window and reloading the page will get it to proper position and size of the modal