generate links controller and set to root