added functionality of message templage