Added mode to pages.