Remove detailed view when we close the window