fixed some problems with preview on multi-monitor setups
observers now are cashed, to close them on exit