elephant commit. Added post editing and deleting functionality