details pdf now stays on the same page after resizing