scrapped code for custom range inputs