moved details to top to prevent content being lost