update code for page layout