added debug window listener (may be bugged)