finish post functionality