optimize views.