Updating delete functionality