add editing post functionality