Legend. UI functionality.