Fixing a save bug to write data to disk. ALso removing search results after the search box is closed.