If showing an apply all button then reset the selection to the last selected if the user closes without clicking the apply all button