Edited posts_controller