preserving visual state between pages (directories)