fix sending of parameters from UI to modules

UIs have to have ids < 0, otherwise message might not be forwarded to modules with the same id
better debug messages