Added signals to be compatible with the old XRF brick.
Only enabling the widget for relevent tasks
Simplified the code, removed duplicate logic.
Submodule update