implement add new post functionality