Change this to view

When you use this the context is window not the proper view.