add showing all posts method in controller