Created add function to the pager