Refreshing page when you change radio buttons

It's hard to help you if you don't provide a minimal reproducible example, read this guide about making a reprex with shiny apps.