Fixed webgui updates and prevent event deadlocks