added navigate and confirm to save function on edit view