exit early if not in the Edit window