add showing all posts method in view