form processing and creating more templates