fix some bug and add getDataFromMogile function to get String stored in mogile