Add click handler for icon to toggle output panel