adding pagination widget