Associates the view with the new layer