fixed legend fill colors, added legend to simulation tab