Clean up the view api some more to allow creation of the widget in the client.