Adjusted lastFile functionality a bit

The recent will only update if the next files is not the same as the current (to remove redundancy) and also the UI is updated before changing the internal; this way recent only shows what was there (without the CURRENT file in the first spot)