update the master-detail example