got pagination and caption text working