fix(view) beforeClose -> onClick