Form not updating in preview mode