Implementing saving edit