add legend to controls pane