Added some page update code