using resetting form type instead of hardcoded form