Close panel after page load