Ad apply view function based for simplicity.