added editing post functionality