add legend and stats panel as controls