added pagination to pins view