prev, next functionality working & json added