add links to top in history and file view