rename [ctp]file and change $modal.open