Time Off modal and refactoring