fix when closing lightbox, that will unbind user define handler bug

and some other simplify, see commit message