fixed four bugs

[X]live button state reset when submitted code - 2
[X]update shared variables from other programmer’s view. - 2
[X]signal to selective execution. - 2
[X]reset for tab switch. -3