add mailtemplate preview to device form. Fixes #52