moved to after pageinit