Add callback function for control pager