add form type constants
refactoring