Fixed bugs in data screen and rule-edit etc, and added some signals.