change view function