added post controller and set root to posts#index.