Yes, example 3 does the current page only. Example 1 makes the setting stick. You may want to combine the logic from those two examples, or change to example 1.