refactor uow

Refactored uow commit method, by renaming methods.