Refactored the slider button to a panel, which fixes some issues, but still working with the 'checked' attribute. I think .prop("checked") works but not really in router.