fix broken links at generated front page
add template for front/error page