fix page not updating issue