update if date exixts on back button