Form is not updating in real time