change pins order and added pagination