new post functionality added