first update pages file