Moving close all popover code to window controller