implemeted save button on edit view