adding touch support; updating template;