edit and add working