commit edit to index