24589 - added logic to scroll to top on modal close