Why is my form not updating automatically?