UI modes for Mel
new legend
misc UI fixes