added pagination to pins controler