changed remove() by html() in the details