add funcybox of the legend