Adding states to pages.