Refactored open editors method