Added functionality to the graph on payslip page