refactoring on absenteeism view helper