fix modal overlay not removing on close