creating the page load method