Fixed links to use routes and replaced html links to ruby links for route use