store form data while navigating backward and forward