changed reset function for editSample to fix reset issue causing old data to show up on reset