added new post functionality