updating retaining sessions data on back button