toogle layer and legend change