auto commit after refresh