Fix result editor modal references and dismissal