updated to index and show pages