Added editing post functionality