set design pattern for node view and node model