Initial implementation of editing and deleting.