Fixed the transclusion of the closed dialog template so it can work with multiple dialogs