Added functions to update pagination upon checkbox filtering