fix "background click" event on modal boxes