adding confirmation to edit

seems to be working so far