splite pages and setup structure for mui