Added an helper function to get the root parent page ID