Added paging functionality to widgets