added css legend styling