modal dismiss protocol