i think close event worked, but please elaborate