added template message sending feature