Callback when the page is loaded.