Added re-routing functionality for when checkboxes are checked/unchecked