created posts_controller (index,show)