Why changes are not being applied to my form?