changes after upload to ter
add hook afterCheckTemplate to change the powermail template