added rainbow-mode switch for editing