made it so it saves the currently-loaded flatdoc file in the hash and remembers it next page load