added legend, fixed bounds, accordion