Copied main to pages