added error handling for changeChart