Update current model

This function saves all changes in the forms which have not yet been saved.