customizing the pageload method