Update an object in the array using a modal form and display updated details

Update an object in the array using a modal form and display updated details

I'm trying to update an object with type="external" by clicking on the edit button.
 It brings up a pop-up, wherein I can enter the new information and it should then update the user accordingly. 
But somehow it doesn't seem to work. It just triggers a page refresh and nothing happens at all. Could you please help me fix this?