sidePage and mainPage done