Make the view bag an object