template cleanup
renamed appendMessage to append