added function of adding new post