update header

get pages dynamically