commit changes when modifying accounts