Tried another approach to fix the error with resizing the details page. So far this passes the test cases. (There is still somewhat of a timing error that occurs)