error templating and styles