small fix in navbar template
better error template
finally, problem solved