fixed error with css and templating