Hide the window properly. Add double-click action on table view.