added check for the form wizard, and created a default template for all the pages