[Improved] Handling pagination results in the dataAction Controller