changed pageinit