refactor updatesave and createsave into model and removed some static calls