add logique to posts.show