single company editIndex method