finished index and show pages