edit main pages and viewe