add document.click to close menus when clicking anywhere