Add functionality to edit and delete options