layout and legend changes