editor: refactoring - move dialog view implementation out of data module