refactoring of name of checkbox variable and refreshing files list when
check is toggled