v0.2.18
remove global
remove dead code
fix close icon visible condition