adjusted modal behavior