adding button to draw with legend