Fixed issue #29: Overlay tool stays open when no page with data is left
-> Also removed hack in overlay tool. It works smooth now.