Fix race conditions in Web UI actions