now removing the onclose line since it is making prod barf