Split files.html into templates, added new navbar, rewrite tab system