Some work towards using ViewWidget class for all our view widgets (#281).