adding order attribute to pages