including templates into dialog