made message template work in firefox