Add name to view function