cleaner implementation of absences dialog