updated index and show pages