make dept input case insensitive, clear graph and table on submit