contain legend

put a container around legend