Ive been working on a multiple instance project. so i tried doing this in the counter app. but only first instance is updating. below is my all code.