prevent default on close-box click