updated index route
solving error with .html_safe