how do hr and payroll work together