a flappy pagination componnet