change Widget mysWidgets to Dictionary with mutex