major change to $modal