adds slim templating for index and error views