refactored rangeselector to have rangeselectorbutton class
cleaning up after debugging for builds