change modal behavior