Added index and show pages code