updated plots to move legends to side