Templatize the modal windows.