modifications for giving user the option to load data.