pagination and cleanup

Signed-off-by: Ramnique Singh <mail@ramniquesingh.name>