Better handling of templates in confirmation popups.