adding new post functionality