add agent controller and set root_url to agents#index