updated pagination example