reformat the way to display leave data