added state saving and restoration to web view example