restyle to pages