updates type of the form