fix buggy behaviou
feature: click outside and programm will be closed