Fixing an issue with the history when no selections present and fixed the reload of the grid when changing folders