Improve the posts_controller file