added freq legend, fixed css