added events to the edit and show message templates