pass index to dataupdate event