created a generic method to handle all forms
merged with zwenta updates