callback function supported for views.