updating range menu values dynamically