saveedit function

save the changes and make invisible the editable pool