added the code to parse the page