ajust using GM API, support manual update via MenuCommand -dye

EDIT: fix nonses define within loop.