added fnality to list all posts