fixed a little bug in mail template UI