added ordering to pins in index
Added pagination to index