changed switching from radio to select based