show/hide details, move details to correct dom position