implemented save button on edit view