adding post functionality