Wired up the open/close button for the legend to work with mobile devices