make sure add sample button does not show up when a new file is loaded