initializing a form