Reindented view function