update topic delete functionality