prepare form type