Added a Form Template function