editing post method added