after select history item, close panel.