moved savechanges into actions in datarepository