Refactoring tag color determination
Refactoring submission update to also support note update, fixes #24