clean up using a window controller