"hotfix" for modal overlay not being removed from DOM tree on close