This commit fixes an issue where the style dropdown list was not populated with options when a new node was created or the page was refreshed. Now, the list is automatically filled based on the initially selected category, ensuring users see the correctt styles from the start. Minor code improvements were also made.