word templates handling added