Added ability to update local model.

When the main model changes, it will update the local model with the changes so the form has the accurate value.