Update pages structure