Added error handling for note creation and styling note notices