fix #123 unable to delete message template, wrong form scope
add some info and cleanup small stuffs in msgtemplate