Refactor MainController
Change root_path on root_url
Change root_url on root_path
Remove TODO