Fixed pages ancestry bug (was ordered by position), added path method to page

Fixed pages ancestry bug (was ordered by position), added path method to page