added code to hide the makes panel if clicked outside of it