Improved the modal for script preview to make sure it all remains on screen