enable menu to be closed when clicking within the iframe