implemented update mesh function on data event