Implmented pagination by Adapter