Updated post controller and index page