adding posts and creating htmls