Updated posts_controller