added pagination, changed index and show views