added error template
removed unused stylesheet
removed unused code