Understanding the page lifecycle