Legend replacement

Preliminary dynamic title