add state-change to min-max button