Refactored class Form and its templates.