still trying to solve sending data to server
Modifying the element's value in order to update the index.