function to set discount selector.