last-minute ui tweaks
fixed ordering of error messages and legend