add missing "var" in front of close button