Any way to force the device page to refresh from a command?

I have two situations, one where I change a preference which is a bool toggle. If the user then hits save without refreshing it will revert back to what was selected (I think). The other is I am adjusting the parameters that are visible and want to refresh the page so they can see it worked or people might keep hitting the button.