saves last viewed file in directory.