Save state of a page on back button click

Save state of a page on back button click