implement index and show pages of all resources