added post editing functionality