Enabled closing by clicking outside