close method changed

Replaced the big red X with a 'click outside' property.