Refactored pager widget.