Instead of trying to manually find the widget values, pass the values to the the frontend. Fixes: #409