added pagination at main page