Create pages and transition between them