Updated refreshMyData function