some fixes, initialization of createForm