pagestate and localsettings example completed