board function almost complete(post.prev should be change because it does not consider category).