Refactor node creation and style