Refactored how the admin renders views.