changing modal event