unify close btn (fixes #29)