set visibility of cart when clicking the icon