edits pet index and show pages