Added features for editing posts