Add openEditor helper