Added pagination to the pin scaffold