edit and save entry