refactor controller route redirect urls and renders