trying the example without pageinit