Factored out the view into an interfaces for the primitive data editor