Select and deselect working with URL params replaced