added legend to sidebar, changed some of the others tyles too