Performance improvements by removing some temporary objects
Add support for exiting formspecs by doubleclicking outside