- added page component
- added method to switch pages