modularizing the buckets-page