fixing issues with parsing out pages