implement edit and delete for posts