Added post editing functionality