bugfix: lock html template rebuild for ui widget