fixed navbar and encoding