index file links correctly