modified to get leaves with manager to employee level