change root_path to posts#index