recentFilePathHook added (can be connected with persistent state)