Separated the title from the page and added code