template alert improved